﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL.Artwork
{
    interface IArtworkDao
    {
        void InsertArtwork(Models.Artworks artwork);

        bool UpdateArtwork(Models.Artworks artwork);

        bool DeleteArtworkById(int id);

        Models.Artworks GetArtworkById(int id);

        List<Models.Artworks> GetList(ref int totalCount, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

        List<Models.Artworks> GetListByTag(ref int totalCount, string[] tag, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");

        List<Models.Artworks> GetListByUserId(ref int totalCount, int userId, int pageIndex = 1, int pageSize = 12, string orderBy = "CreatedAt Desc");


        int GetTotal();

    }
}
